import service from "./service";
import { v4 } from "uuid";
// 采集方案
const url = "/attachments";

export function createAttachment(attachment: any) {
  return service.post(url + "/create", { attachment });
}

export function removeAttachment(id: string) {
  return service.delete(url + `${id}/remove`);
}

export function uploadAttachment(form: any){
    return service.post(`/upload`,form);
}
